#!/bin/bash

find | grep '~' | xargs rm -f
find | grep '.pyc' | xargs rm -f

if [ "$#" -eq "1" ]; then
	tar -acf $1.tar.gz --exclude .svn --exclude .tmp $1
	svn add $1.tar.gz --force
	svn ci -m "* added source tar $1.tar.gz"
fi
